package com.wootion.dizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
@Data
@TableName(value = "category")
public class Category implements Serializable {
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "类别")
    @NotBlank(message = "类别不能为空")
    private String categoryName;

    @ApiModelProperty(value = "父级id")
    private String pid;

    @ApiModelProperty(value = "等级 1:一级 2:二级 3:三级")
    private String level;
}
